package com.sizu.common.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @ClassName FastDFSFile
 * @Description FastDFSFile
 * @Author GaoJingYang
 * @Date 2020/3/24 17:43
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class FastDFSFile implements Serializable {

    /**
     *     文件名字
     */
    private String name;
    /**
     * 文件内容
     */
    private byte[] content;
    /**
     * 文件扩展名
     */
    private String ext;
    /**
     * 文件MD5摘要值
     */
    private String md5;
    /**
     * 文件创建作者
     */
    private String author;

    /**
     * 构造方法
     * @param name
     * @param content
     * @param ext
     * @param md5
     * @param author
     */
    public FastDFSFile(String name, byte[] content, String ext, String md5, String author) {
        this.name = name;
        this.content = content;
        this.ext = ext;
        this.md5 = md5;
        this.author = author;
    }

    public FastDFSFile(String name, byte[] content, String ext) {
        this.name = name;
        this.content = content;
        this.ext = ext;
    }

    public FastDFSFile() {
    }
}
